package com.bole.dao;

import com.bole.pojo.DicCarSpecDo;
import com.bole.pojo.TbUserDo;
import feign.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

@Transactional
public interface CarSpecDao extends JpaRepository<DicCarSpecDo,Long> {

    @Transactional
    @Modifying
    @Query("delete from  DicCarSpecDo s where  s.id in (:ides)")
    void deleteBatch(@Param("ides") List<Long> ides);

}
